home *** CD-ROM | disk | FTP | other *** search
/ Aminet 37 / Aminet 37 (2000)(Schatztruhe)[!][Jun 2000].iso / Aminet / dev / basic / PureBasic.lha / PureBasic_Demo / PureBasic / Help / ASM_Keywords.guide < prev    next >
Encoding:
Text File  |  2000-03-19  |  9.6 KB  |  222 lines

  1.  
  2.   ***********************************************************************
  3.   *                                                                      *
  4.   *               PureBasic Inlined ASM Keywords List                    *
  5.   *                                                                      *
  6.    ***********************************************************************
  7.  
  8.  
  9.  
  10. -------------------
  11.                    -
  12. 68000 instructions: -
  13.                    -
  14. -------------------
  15.  
  16.  Name    |   Possible forms          |    Description
  17. ---------+---------------------------+------------------------
  18. ABCD        Dy,Dx                      Add Decimal with Extend
  19. ABCD        -(Ay),-(Ax)
  20. ADD.x       <ea>,Dn                    Add
  21. ADD.x       Dn,<ea>
  22. ADDA.x      <ea>,An                    Add Address
  23. ADDI.x      #<data>,<ea>               Add Immediate
  24. ADDQ.x      #<data>,<ea>               Add Quick
  25. ADDX.x      Dy,Dx                      Add Extended
  26. ADDX.x      -(Ay),-(Ax)
  27. AND.x       <ea>,Dn                    And Logical
  28. AND.x       Dn,<ea>
  29. ANDI.x      #<data>,<ea>               And Immediate
  30. ANDI.x      #<data>,CCR                And Immediate to Condition Codes
  31. ANDI.x      #<data>,SR                 And Immediate to the Status Register
  32. ASL/ASR.x   Dx,Dy                      Arithmetic Shift Left/Right
  33. ASL/ASR.x   #<data>,Dy
  34. ASL/ASR     <ea>
  35. B<cc>.x     <label>                    Branch Conditionally
  36. BCHG        Dn,<ea>                    Test a Bit and Change
  37. BCHG        #<data>,<ea>
  38. BCLR        Dn,<ea>                    Test a Bit and Clear
  39. BCLR        #<data>,<ea>
  40. BRA.x       <label>                    Branch Always
  41. BSET        Dn,<ea>                    Test a Bit and Set
  42. BSET        #<data>,<ea>
  43. BSR.x       <label>                    Branch to Subroutine
  44. BTST.x      Dn,<ea>                    Test a Bit
  45. BTST.x      #<data>,<ea>
  46. CHK.x       <ea>,Dn                    Check Register Against Bounds
  47. CLR.x       <ea>                       Clear an Operand
  48. CMP.x       <ea>,Dn                    Compare
  49. CMPA.x      <ea>,An                    Compare Address
  50. CMPI.x      #<data>,<ea>               Compare Immediate
  51. CMPM.x      (Ay)+,(Ax)+                Compare Memory
  52. DB<cc>      Dn,<label>                 Test Condition, Decrement, and Branch
  53. DIVS        <ea>,Dn                    Signed Divide
  54. DIVU        <ea>,Dn                    Unsigned Divide
  55. EOR.x       Dn,<ea>                    Exclusive-OR Logical
  56. EORI.x      #<data>,<ea>               Exclusive-OR Immediate
  57. EORI.x      #<data>,CCR                Exclusive-OR Immediate to Cond. Codes
  58. EORI.x      #<data>,SR                 Exclusive-OR Immediate to Status Reg.
  59. EXG         Rn,Rm                      Exchange Registers
  60. EXT.x       Dn                         Sign Extend
  61. ILLEGAL                                Take Illegal Instruction Trap
  62. JMP         <ea>                       Jump
  63. JSR         <ea>                       Jump to Subroutine
  64. LEA         <ea>,An                    Load Effective Address
  65. LINK        An,#<displacement>         Link and Allocate
  66. LSL/LSR.x   Dx,Dy                      Logical Shift Left/Right
  67. LSL/LSR.x   #<data>,Dy
  68. LSL/LSR     <ea>
  69. MOVE.x      <ea>,<ea>                  Move Data from Source to Destination
  70. MOVEA.x     <ea>,An                    Move Address
  71. MOVE        <ea>,CCR                   Move to Condition Codes
  72. MOVE        <ea>,SR                    Move to the Status Register
  73. MOVE        SR,<ea>                    Move from Status Register
  74. MOVE        USP,An                     Move User Stack Pointer
  75. MOVE        An,USP
  76. MOVEM.x     <register list>,<ea>       Move Multiple Registers
  77. MOVEM.x     <ea>,<register list>
  78. MOVEP.x     Dx,(d,Ay)                  Move Peripheral Data (not 68060!)
  79. MOVEP.x     (d,Ay),Dx
  80. MOVEQ       #<data>,Dn                 Move Quick
  81. MULS        <ea>,Dn                    Signed Multiply
  82. MULU        <ea>,Dn                    Unsigned Multiply
  83. NBCD        <ea>                       Negate Decimal with Extend
  84. NEG.x       <ea>                       Negate
  85. NEGX.x      <ea>                       Negate with Extend
  86. NOP                                    No Operation
  87. NOT.x       <ea>                       Logical Complement
  88. OR.x        <ea>,Dn                    Inclusive-OR Logical
  89. OR.x        Dn,<ea>
  90. ORI.x       #<data>,<ea>               Inclusive-OR Immediate
  91. ORI.x       #<data>,CCR                Inclusive-OR Immediate to Cond. Codes
  92. PEA         <ea>                       Push Effective Address
  93. RESET                                  Reset External Devices
  94. ROL/ROR.x   Dx,Dy                      Rotate (without Extend) Left/Right
  95. ROL/ROR.x   #<data>,Dy
  96. ROL/ROR     <ea>
  97. ROXL/ROXR.x Dx,Dy                      Rotate Left/Right with Extend
  98. ROXL/ROXR.x #<data>,Dy
  99. ROXL/ROXR   <ea>
  100. RTE                                    Return from Exception
  101. RTR                                    Return and Restore Condition Codes
  102. RTS                                    Return from Subroutine
  103. SBCD        Dx,Dy                      Subtract Decimal with Extend
  104. SBCD        -(Ax),-(Ay)
  105. S<cc>       <ea>                       Set According to Condition
  106. STOP        #<data>                    Load Status Register and Stop
  107. SUB.x       <ea>,Dn                    Subtract
  108. SUB.x       Dn,<ea>
  109. SUBA.x      <ea>,An                    Subtract Address
  110. SUBI.x      #<data>,<ea>               Subtract Immediate
  111. SUBQ.x      #<data>,<ea>               Subtract Quick
  112. SUBX.x      Dx,Dy                      Subtract with Extend
  113. SWAP        Dn                         Swap Register Halves
  114. TAS         <ea>                       Test and Set an Operand
  115. TRAP        #<vector>                  Take Trap Exception
  116. TRAPV                                  Trap on Overflow
  117. TST.x       <ea>                       Test an Operand
  118. UNLK        An                         Unlink
  119.  
  120. Integer Condition Codes <cc>:
  121. CC (HS)  carry clear (higher or same)  CS (LO)  carry set (lower)
  122. EQ       equal                         F        never true
  123. GE       greater or equal              GT       greater than
  124. HI       higher                        LE       less or equal
  125. LS       less or same                  LT       less than
  126. MI       negative                      NE       not equal
  127. PL       positive                      T        always true
  128. VC       overflow clear                VS       overflow set
  129.  
  130.  
  131. -------------------
  132.                    -
  133. 68010 instructions: -
  134.                    -
  135. -------------------
  136.  
  137.  Name    |   Possible forms          |    Description
  138. ---------+---------------------------+------------------------
  139. BKPT        #<data>                    Breakpoint
  140. MOVE        CCR,<ea>                   Move from the Condition Code Register
  141. MOVEC       Rc,Rn                      Move Control Registers
  142. MOVEC       Rn,Rc
  143. MOVES       Rn,<ea>                    Move Address Space
  144. MOVES       <ea>,Rn
  145. RTD         #<displacement>            Return and Deallocate
  146.  
  147.  
  148. -------------------
  149.                    -
  150. 68020 instructions: -
  151.                    -
  152. -------------------
  153.  
  154.  Name    |   Possible forms          |    Description
  155. ---------+---------------------------+------------------------
  156. BFCHG       <ea>{offset:width}         Test Bit Field and Change
  157. BFCLR       <ea>{offset:width}         Test Bit Field and Clear
  158. BFEXTS      <ea>{offset:width},Dn      Extract Bit Field Signed
  159. BFEXTU      <ea>{offset:width},Dn      Extract Bit Field Unsigned
  160. BFFFO       <ea>{offset:width},Dn      Find First One in Bit Field
  161. BFINS       Dn,<ea>{offset:width}      Insert Bit Field
  162. BFSET       <ea>{offset:width}         Test Bit Field and Set
  163. BFTST       <ea>{offset:width}         Test Bit Field
  164. CALLM       #<data>,<ea>               Call Module (68020 ONLY!)
  165. CAS.x       Dc,Du,<ea>                 Compare and Swap with Operand
  166. CAS2.x      Dc1:Dc2,Du1:Du2,(Rn1):(Rn2) (020-040 only!)
  167. CHK2.x      <ea>,Rn  (020-040 only!)   Check Register Against Bounds
  168. CMP2.x      <ea>,Rn  (020-040 only!)   Compare Register Against Bounds
  169. DIVS.L      <ea>,Dq                    Signed Divide
  170. DIVS.L      <ea>,Dr:Dq  (020-040 only!)
  171. DIVSL.L     <ea>,Dr:Dq
  172. DIVU.L      <ea>,Dq                    Unsigned Divide
  173. DIVU.L      <ea>,Dr:Dq  (020-040 only!)
  174. DIVUL.L     <ea>,Dr:Dq
  175. EXTB.L      Dn                         Sign Extend
  176. LINK.L      An,#<displacement>         Link and Allocate
  177. MULS.L      <ea>,Dl                    Signed Multiply
  178. MULS.L      <ea>,Dh:Dl
  179. MULU.L      <ea>,Dl                    Unsigned Multiply
  180. MULU.L      <ea>,Dh:Dl
  181. PACK        -(Ax),-(Ay),#<adjustment>  Pack BCD
  182. PACK        Dx,Dy,#<adjustment>
  183. RTM         Rn                         Return from Module (68020 ONLY!)
  184. TRAP<cc>                               Trap on Condition
  185. TRAP<cc>.x  #<data>
  186. UNPK        -(Ax),-(Ay),#<adjustment>  Unpack BCD
  187. UNPK        Dx,Dy,#<adjustment>
  188.  
  189.  
  190. -------------------
  191.                    -
  192. 68040 instructions: -
  193.                    -
  194. -------------------
  195.  
  196.  Name    |   Possible forms          |    Description
  197. ---------+---------------------------+------------------------
  198. CINVL       <caches>,(An)              Invalidate Cache Lines
  199. CINVP       <caches>,(An)              (<caches> = DC, IC, BC or NC)
  200. CINVA       <caches>
  201. CPUSHL      <caches>,(An)              Push and Invalidate Cache Lines
  202. CPUSHP      <caches>,(An)
  203. CPUSHA      <caches>
  204. MOVE16      (Ax)+,(Ay)+                Move 16 Bytes Block
  205. MOVE16      xxx.L,(An)
  206. MOVE16      xxx.L,(An)+
  207. MOVE16      (An),xxx.L
  208. MOVE16      (An)+,xxx.L
  209.  
  210.  
  211. -------------------
  212.                    -
  213. 68060 instructions: -
  214.                    -
  215. -------------------
  216.  
  217.  Name    |   Possible forms          |    Description
  218. ---------+---------------------------+------------------------
  219. LPSTOP      #<data>                    Low-Power Stop
  220. HALT                                   Processor halted
  221. PULSE                                  Send $14 pulse on PSTx
  222.